<template>
  <van-nav-bar title="分类" />
  <van-search v-model="value" placeholder="请输入搜索关键词" />

  <van-sidebar v-model="active">
    <van-sidebar-item title="标签名称" />
    <van-sidebar-item title="标签名称" />
    <van-sidebar-item title="标签名称" />
  </van-sidebar>
</template>

<script lang="ts">
import { defineComponent, ref } from "vue";

export default defineComponent({
  setup() {
    const value = ref<string>("");
    const active = ref<number>(0);

    return {
      value,
      active,
    };
  },
});
</script>
